package com.heima.article.controller.v1;

import com.heima.apis.behavior.IBehaviorClient;
import com.heima.article.service.ZhangJiaXingService;
import com.heima.model.behavior.dtos.BhLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ZhangJiaXingController  {

    @Autowired
    private ZhangJiaXingService zhangJiaXingService;


    @PostMapping("/api/v1/likes_behavior")
    public ResponseResult liking(BhLikesBehaviorDto dto) {

        return zhangJiaXingService.liking(dto);
    }
}
